# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=pyproject2setuppy
pkgver=4
pkgrel=0
pkgdesc="Cheap builder for pyproject-based build systems"
url="https://github.com/mgorny/pyproject2setuppy"
arch="noarch"
license="BSD-2-Clause"
depends="py3-toml"
checkdepends="py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/mgorny/pyproject2setuppy/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1721ea0ba9bbd579af88543e2487863803eb002ba2eacd7db7b7dfad663a87a1f8248afff92964fedc0d5edffa92929dfb3e613f8ba0ec884ee98e44fb38544d  pyproject2setuppy-4.tar.gz"
